/*
 * SystemPropertyValueDisplay.java
 *
 * Created on 24 September 2004, 09:11
 * Copyright (C) 2004, Velocityme Partnership
 */

package com.velocityme.client.gui.systemproperty;

import java.util.Collection;
import javax.swing.DefaultCellEditor;
import javax.swing.JComboBox;

/**
 *
 * @author  Robert Crida Work
 */
public class SystemPropertyValueDisplay extends javax.swing.JPanel {
    
    private SystemPropertyTableModel m_modelSystemProperty;
    private int m_selectedRow;
    private boolean m_editable = false;
    
    /** Creates new form ContactDetailTypeValueDisplay */
    public SystemPropertyValueDisplay() {
        initComponents();
    }
    
    public void setSystemPropertyValues(Collection p_systemPropertyValues) {
        m_modelSystemProperty.addValues(p_systemPropertyValues);
    }
    
    public Collection getSystemPropertyValues() {
        return m_modelSystemProperty.getElements();
    }
    
    public void setEditable(boolean p_editable) {
        m_editable = p_editable;
        m_modelSystemProperty.setEditable(p_editable);
    }
    
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    private void initComponents() {//GEN-BEGIN:initComponents
        jScrollPane1 = new javax.swing.JScrollPane();
        m_modelSystemProperty = new SystemPropertyTableModel();
        jTableProperties = new javax.swing.JTable(m_modelSystemProperty);

        setLayout(new java.awt.BorderLayout());

        jScrollPane1.setViewportView(jTableProperties);

        add(jScrollPane1, java.awt.BorderLayout.CENTER);

    }//GEN-END:initComponents
    
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTable jTableProperties;
    // End of variables declaration//GEN-END:variables
    
}
